{template 'header'}
<style type="text/css">
	body {
		background: white !important;
		height: 100%;
		box-sizing: border-box;
	}

	.header{
		margin-bottom: 50px;
	}

	.zhuti {
		width: 100%;
		height: 100%;
		position: absolute;
		top: 0;
		left: 0
	}

	.zhuti .bgimg {
		width: 100%;
		height: 100%;
	}

	.zhuti .button_tu {
		width: 170px;
		position: absolute;
		top: 80%;
		left: 50%;
		margin-left: -85px;
	}
</style>
		
</head>

<body>
	<div class="mui-content">
		<div class="zhuti">
			<!-- 背景图 -->
			<img src="{php echo cmf_get_upload_url($user['qrcode'])}" alt="" class="bgimg" id="fenxiang" />
			<!-- 点击保存图片 -->
			<img src="{MODULE_URL}assets/img/button.png" class="button_tu" />
		</div>
	</div>

	<script src="{MODULE_URL}assets/js/mui.min.js"></script>
	<script src="{MODULE_URL}assets/js/jquery.min.js"></script>
	<script type="text/javascript">
		mui.init({})

		mui.plusReady(function(){

		})
		var qrcode = '{$user["qrcode"]}'
		if(qrcode == ''){
			mui.alert('请先完善信息个人信息','',function(){
				location.href = '{php echo $this->createMobileUrl("core",array("op"=>"wanshan"))}'
			})
		}
		$('.button_tu').click(function () {
			mui.alert('长按保存图片','',function(){
				location.href = $('#fenxiang').attr('src')
			})
		})
	</script>
</body>

</html>